package com.imooc.pojo.BO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lihongyu
 * @CreateTime 2021-08-06 14:28
 * @Description 用户注册接收对象
 */
@ApiModel("用户注册接收对象")
public class UserBO implements Serializable {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名",name = "username",dataType = "String")
    @NotBlank(message = "用户名不能为空!")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码",name = "password",dataType = "String")
    @NotBlank(message = "密码不能为空!")
    private String password;

    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码",name = "confirmPassword",dataType = "String")
    @NotBlank(message = "确认密码不能为空!")
    private String confirmPassword;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }
}
